package com.zhuotiao.crm;

import io.swagger.annotations.ApiOperation;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author huang_kangjie
 * @create 2018-08-28 10:39
 **/
@RestController
@RequestMapping("/test")
public class TestController {
     /**
      * 查询
      * 使用tk
      * @param id
      * @return
      */
     @ApiOperation("查询")
     @RequestMapping("/detail")
     public ResponseEntity<?> testJson(Long id){
          Map<String, Object> map = new HashMap<>();
          map.put("a", 1);
          map.put("b", 2);
          return new ResponseEntity<>(map, HttpStatus.OK);
     }

}
